<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: WangJun
  Date: 2024/11/7
  Time: 11:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    ArrayList objects = new ArrayList();
    objects.add("a");
    objects.add("b");
    objects.add("c");
    request.setAttribute("list", objects);
%>
${list}<br>
${list[0]}<br>
${list[1]}<br>
${list[2]}<br>


</body>
</html>
